import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { FormsModule } from "@angular/forms";

import { OnetooneListRoutingModule } from './onetoone-list-routing.module';
import { WclComponent } from './wcl/wcl.component';
import { YclwyzComponent } from './yclwyz/yclwyz.component';
import { YclyyzComponent } from './yclyyz/yclyyz.component';
import { YzzComponent } from './yzz/yzz.component';

import { FileUploadModule } from 'ng2-file-upload';
import { CustomFormsModule } from 'ng2-validation';
import { AppPaginationModule } from "../../../widgets/pagination/pagination.module";
import { FlatpickrModule, FLATPICKR } from '../../../../assets/angularx-flatpickr';
import * as flatpickr from 'flatpickr';
export function flatpickrFactory() {
  return flatpickr;
}

@NgModule({
  imports: [
    CommonModule,
    OnetooneListRoutingModule,
    FormsModule,
    FileUploadModule,
    CustomFormsModule,
    AppPaginationModule,
    FlatpickrModule.forRoot({
      provide: FLATPICKR,
      useFactory: flatpickrFactory
    })
  ],
  declarations: [WclComponent, YclwyzComponent, YclyyzComponent, YzzComponent]
})
export class OnetooneListModule { }
